package com.lagou.module2homewor;

/**
 * 棋子枚举类
 */
public enum Chessman {
    WHITE("○"),BLACK("●");
    private String chessman;

    /**
     * 构造器
     * @param chessman 棋子
     */
    private Chessman(String chessman){
        this.chessman = chessman;
    }

    /**
     * 返回棋子
     * @return chessman 棋子
     */
    public String getChessman() {
        return this.chessman;
    }
}
